import request from '@/utils/request'
// 获取参数列表
export function getlistDict(data) {
  return request({
    url: '/sys/dict/listDict',
    params: data
  })
}
// 下载
export function getexport(data) {
  return request({
    url: '/sys/dict/export',
    params: data,
    responseType: 'blob'
  })
}
// 是否有重名
export function keyDuplicate(data) {
  return request({
    url: '/sys/dict/keyDuplicate',
    params: data
  })
}
// 添加参数
export function createDict(data) {
  return request({
    url: '/sys/dict/createDict',
    method: 'post',
    data
  })
}
// 修改参数
export function modifyDict(data) {
  return request({
    url: '/sys/dict/modifyDict',
    method: 'post',
    data
  })
}
// 删除参数
export function removeDictByIds(data) {
  return request({
    url: '/sys/dict/removeDictByIds',
    method: 'post',
    data
  })
}
// 刷新缓存
export function refreshCache() {
  return request({
    url: '/sys/dict/refreshCache',
    method: 'post'
  })
}
